# 导出快照为虚拟机
# Export-VMCheckpoint -VMName <virtual machine name> -Name <checkpoint name> -Path <path for export>


$vmname = "ubuntu desktop"
Export-VMCheckpoint -VMName $vmname -Name "init 2023-06-14" -Path G:/vms/hyperV-checkpoints-exports/